

<?php 

	class Mcategorie extends CI_Model{
		protected $_table="catenews"; 
	public function __construct(){
			parent::__construct();
		}
		public function listAllcate(){								// liet ke danh muc 
			return $this->db->get($this->_table)->result_array();	
	}
		
		public function deleteUser($id){
			$this->db->where('cate_id', $id);				
			$this->db->delete($this->_table); 
			
		}

		public function addcate($data){
			$this->db->insert($this->_table,$data); 		

		}

}
?> 